package com.wonders.frame.chron.service.summary;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wonders.frame.chron.dao.card.CardDao;
import com.wonders.frame.chron.model.bo.Summary;
import com.wonders.frame.core.service.BasicCrudService;



/**
 * 系统日志AOP
 * @author Administrator
 *
 */
@Service
public class SummaryService {
	@Resource
	private BasicCrudService basicCrudService;
	
	@Resource
	private CardDao cardDao;	
	
	/**
	 * 删除同时解绑Card
	 */
	@Transactional
	public void delete(Integer id){
		this.basicCrudService.removeById(Summary.class, id);
		cardDao.unbindSummary(id);
	}
}
